<template>
  <div>
    <el-container>
      <el-header>
          <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
            <Menu :menuTree="getMenuTree"></Menu>
        </el-aside>
        <el-main>
         
            <router-view></router-view>
        
            
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from '../components/index/header'
import Menu from '../components/index/menu'
import {mapGetters} from 'vuex'
import router from "@/router";
import EditRole from "@/components/set/EditRole";
export default {
  name: "index",
  components:{
    Header,
    Menu
  },
  computed: { ...mapGetters(['getMenuTree']) },
    created() {
        this.$router.push("/index");
    }
}
</script>

<style scoped>
.el-header {
    background-color: #262f38;
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 60px;
    position: relative;
    width: 100%;
    height: 60px;  
  }
  .el-aside {
    background-color: #54677a;
    display: block;
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 0;
  }
  .el-main {
    color: #333;
    padding-left:30px;
    position: absolute;
    left: 200px;
    right: 0;
    top: 60px;
    bottom: 0;
    overflow-y: scroll;
  }
</style>